package com.hjh.starter.config;

import com.hjh.starter.annotation.StarterEnable;
import com.hjh.starter.bean.MyBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConditionalOnBean(StarterEnable.class)
public class MyAutoConfig {

	static {
		System.out.println("MyAutoConfig init..........");
	}


	@Bean
	public MyBean myBean() {
		return new MyBean();
	}

}
